package cn.wolfcode.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Getter
@Setter
public class Client {
    private Long id;

    private String name;

    private int age;

    private boolean gender;

    private String tel;

    private String email;

    //负责人
    private Employee inChargeUser;

    //创建人
    private Employee inputUser;

    //创建时间
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date inputTime;

    /**
     -2:流失
     -1:开发失败
     0:潜在客户
     1:正式客户
     2:资源池客户
     */
    private long status=0;

    //转正(式客户)时间
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date forwardTime;

    private String qq;

    private String wechat;

    //数据字典
    //职业
    private Long jobId;

    //薪资水平
    private Long salaryLevelId;

    //客户来源
    private Long customerSourceId;

    //地址
    private String address;

    //身份证
    private String idNo;

}